// routers/setting_router.go
package routers

import (
	"github.com/gin-gonic/gin"
	"muziai-server/api"
	"muziai-server/middleware"
)

func DataRouter(r *gin.RouterGroup) {
	middleware := middleware.MiddlewareAuth{}
	app := api.ApiApp.DataApi
	r.GET("/data/statistic", middleware.MiddlewareAuth(), app.StatisticView)
	r.GET("/data/chat_statistic", middleware.MiddlewareAuth(), app.ChatStatisticView)
}
